/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.connect5.numerical;

import org.jfonia.connect5.basics.MutableValueNode;
import org.jfonia.connect5.basics.ValueNode;
import org.jfonia.connect5.relations.UnidirectionalABCRelation;

/**
 *
 * @author Rik Bauwens
 */
public class UnidirectionalIntDivisionRelation extends UnidirectionalABCRelation<Integer, Integer, Integer>
{
        public UnidirectionalIntDivisionRelation(ValueNode<Integer> a, ValueNode<Integer> b, MutableValueNode<Integer> c)
        {
                super(a, b, c);
        }

        @Override
        public void updateC()
        {
                c.setValue(a.getValue() / b.getValue(), this);
        }

}
